package com.learn.springframework.bean;

/**
 * BeanWrapper包装器模式：缓存到了IOC容器
 * @author MI
 */
public class BeanWrapper {


    private Object wrapperedInstance;

    public BeanWrapper(Object instance) {
        this.wrapperedInstance = instance;
        this.wrappedClass = instance.getClass();
    }

    private Class<?> wrappedClass;


    public Object getWrappedInstance() {
        return this.wrapperedInstance;
    }

    public Class<?> getWrappedClass() {
        return this.wrappedClass;
    }

}
